{if $cmss|count}
<table class="data" id="data-table">
<caption>List of CMS</caption>
<thead>
	<tr class="thead">
		<th>S.N.</th>
		<th>*page_id*</th>
		
		<!--{* Column Headers *}-->
		<th><a href="?sort=Page Name">Page Name</a></th>
		<th><a href="?sort=Page Title">Page Title</a></th>
		<th><a href="?sort=Include File">Include File</a></th>
		<th><a href="?sort=Content Title">Content Title</a></th>
		<th><a href="?sort=Meta Keywords">Meta Keywords</a></th>
		<th><a href="?sort=Template File">Template File</a></th>
		<th><a href="?sort=Page Comments">Page Comments</a></th>
		<th><a href="?sort=Page Extra">Page Extra</a></th>
	</tr>
</thead>
<tbody>
{section name='l' loop=$cmss}
	<tr class="{cycle values='A,B'}">
		<td class="r">{$smarty.section.l.index_next+$pagination->begining_entry()}.</td>
		<td><a href="cms-details-public.php?id={$cmss[l].page_id}&amp;code={$cmss[l].code}">{$cmss[l].page_id}</a></td>
		
		<!--{* Column Data *}-->
		<td>{$cmss[l].page_name}</td>
		<td>{$cmss[l].page_title}</td>
		<td>{$cmss[l].include_file}</td>
		<td>{$cmss[l].content_title}</td>
		<td>{$cmss[l].meta_keywords}</td>
		<td>{$cmss[l].template_file}</td>
		<td>{$cmss[l].page_comments}</td>
		<td>{$cmss[l].page_extra}</td>
	</tr>
{sectionelse}
	<tr class="error">
		<td>-</td>
		<td>-</td>
		
		<!--{* Empty Cells *}-->
		<td>-</td>
		<td>-</td>
		<td>-</td>
		<td>-</td>
		<td>-</td>
		<td>-</td>
		<td>-</td>
		<td>-</td>
	</tr>
{/section}
</tbody>
</table>

<!-- paginator -->
{if $pagination->has_pages()}
<div class="paginator">
	<span class="introduction">Jump to page: </span>
	
	<!--{* wrap with <ul>...</ul> tags when using ulli=true parameter. *}-->
	<!--{* <ul> *}-->
	{paginate separator=' ' ulli=false source=$pagination}
	<!--{* <ul> *}-->
</div>
{/if}

{else}
	<div class="nodata">You do not have any records here.</div>
{/if}

<!-- End of cms List (Public) -->